import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import Vuex from 'vuex'
import request from './utils/util'

Vue.use(Vuex)

let store = new Vuex.Store({
  state: {
    word: {}
  },
  mutations: {
    updateWord(state, value) {
      state.word = value
    }
  },
  actions: {}
})

Vue.config.productionTip = false
Vue.prototype.$axios = request

new Vue({
  render: h => h(App),
  store,
  router
}).$mount('#app')
